package com.hunter2.standard.entity;

import java.util.Date;

public class CvEducation {
	private Integer id;

	private Date createTime;

	private Date updateTime;

	private Integer candidateid;

	private Integer processStage;

	private String startTime;

	private String endTime;

	private String school;

	private String major;

	private Integer degree;

	private String info;

	private Float score;

	private Integer flag;

	private Integer fileid;

	private String educationInfo;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getCandidateid() {
		return candidateid;
	}

	public void setCandidateid(Integer candidateid) {
		this.candidateid = candidateid;
	}

	public Integer getProcessStage() {
		return processStage;
	}

	public void setProcessStage(Integer processStage) {
		this.processStage = processStage;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime == null ? null : startTime.trim();
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime == null ? null : endTime.trim();
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school == null ? null : school.trim();
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major == null ? null : major.trim();
	}

	public Integer getDegree() {
		return degree;
	}

	public void setDegree(Integer degree) {
		this.degree = degree;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info == null ? null : info.trim();
	}

	public Float getScore() {
		return score;
	}

	public void setScore(Float score) {
		this.score = score;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getFileid() {
		return fileid;
	}

	public void setFileid(Integer fileid) {
		this.fileid = fileid;
	}

	public String getEducationInfo() {
		return educationInfo;
	}

	public void setEducationInfo(String educationInfo) {
		this.educationInfo = educationInfo == null ? null : educationInfo.trim();
	}

	public String write2Line(CvEducation edu) {
		
		// 15行
		String line = "\\N" + "\t" + "\\N" + "\t" + "\\N" + "\t" + edu.getCandidateid() + "\t" + "\\N" + "\t"
				+ edu.getStartTime() + "\t" + edu.getEndTime() + "\t" + edu.getSchool() + "\t" + edu.getMajor() + "\t"
				+ edu.getDegree() + "\t" + edu.getInfo() + "\t" + "\\N" + "\t" + edu.getEducationInfo() + "\t" + "1"
				+ "\t" + "\\N" + "\t";

		return line;
	}

	@Override
	public String toString() {
		return "CvEducation [id=" + id + ", createTime=" + createTime + ", updateTime=" + updateTime + ", candidateid="
				+ candidateid + ", processStage=" + processStage + ", startTime=" + startTime + ", endTime=" + endTime
				+ ", school=" + school + ", major=" + major + ", degree=" + degree + ", info=" + info + ", score="
				+ score + ", flag=" + flag + ", fileid=" + fileid + ", educationInfo=" + educationInfo + "]";
	}
}